package com.shangyitong.util;

import com.alibaba.fastjson.JSONObject;
import com.shangyitong.helper.HttpRequestHelper;

import java.util.Map;

public class MapToJavaObjectWithClass {
    public static String mapToJavaObject(Map<String, String[]> mapObject) {
        Map<String, Object> objectMap = HttpRequestHelper.switchMap(mapObject);
        return JSONObject.toJSONString(objectMap);
    }

    public static Map<String, Object> switchObjectMap(Map<String, String[]> mapObject) {
        return HttpRequestHelper.switchMap(mapObject);
    }

}
